package com.song.cmsservice.client;

import com.song.commonutils.ResultObj;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author song
 * @data 2020/4/6
 */
@FeignClient(name = "service-vod")
@Component
public interface VodFeign {

    /**
     * 根据视频video_source_id获取视频凭证
     * @param id
     * @return
     */
    @GetMapping("/eduvod/video/getPlayAuth/{id}")
    ResultObj getPlayAuth(@PathVariable("id") String id);
}
